xl: fix adding configuration parameters on command line
authorAndre Przywara <andre.przywara@amd.com>
Fri, 10 Sep 2010 17:57:28 +0000 (18:57 +0100)
committerAndre Przywara <andre.przywara@amd.com>
Fri, 10 Sep 2010 17:57:28 +0000 (18:57 +0100)
commit5ab30725b1736b3af47ad911b800a8fbcbd6a112
treed891bd012e72fc8ebc591ae1fc894951e0864c9d
parentd074f7ebc98194fafd9218ca962d23bf50a76286
xl: fix adding configuration parameters on command line

Since we read the text file as is from the disk, there is no
trailing \0 at the end terminating the C string. Therefore we
must not use strcat to this buffer. Also we need to allocate
space for the trailing zero byte.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c